package com.ll.mybaits.dao;

import com.ll.mybaits.bean.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 2020/9/18 - 10:10
 */

public interface EmployeeMapper {

    //查询单个员工
    public Employee getEmpById(Integer id);

    //查询所有员工
    @Select("select * from tbl_employee")
    public List<Employee> getEmps();

}
